/**
 * Created by Administrator on 2017/11/24.
 */
/**
 * 动态创建表单并提交
 * @param url 提交url
 * @param data map 数据格式
 */
function formSubmit(url, data) {
    var temForm = document.createElement("form");
    temForm.action = url;
    temForm.hidden = "hidden";
    temForm.method = "post";
    for (var name in data) {
        var input = document.createElement("input");
        input.name = name;
        input.value = data[name];
        temForm.appendChild(input)
    }
    document.body.appendChild(temForm);
    return temForm.submit()
}
